Check for strings as positive-negative - integer-float

54

# returns `False` for float
>>> '123.3'.isdigit()
False
# returns `False` for negative number
>>> '-123'.isdigit()
False

Comments

Submit
0 Comments